﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Clinica/MasterPagePlanificacion.master" AutoEventWireup="true" CodeFile="wfEspecialidadesReporte.aspx.cs" Inherits="Ventas_wfEspecialidadesReporte" %>

<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPivotGrid" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2.Export, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v11.2.Export, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPivotGrid.Export" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMenuSecundario" Runat="Server">
    <li><a href="wfIndicadores.aspx" class="">Indicadores</a></li>
    <li><a href="wfEspecialidadesReporte.aspx" class="active">Especialidades</a></li>
    <li><a href="wfSugerenciasReporte.aspx" class="">Sugerencias</a></li>
    <li><a href="wfQuejasReporte.aspx" class="">Quejas</a></li>
    <li><a href="wfReclamosReporte.aspx" class="">Reclamos</a></li>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ModuleTitleContent" Runat="Server">
    Especialidades
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentEnlacesRapidos" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" Runat="Server">
    <h4>Reporte de Especialidades</h4>
    <table>
        <tr>
            <td>
                <dx:ASPxButton ID="btnVerInforme" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                    Text="Ver Informe" Font-Size="X-Small">
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnVerGrafico" runat="server" ClientIDMode="AutoID" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                    Text="Ver Gráfico" Visible="False" Font-Size="X-Small">
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th scope="col" valign="top" align="left" width="99%">
                <dx:ASPxRoundPanel ID="panelMessage" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" Font-Size="XX-Small" ClientIDMode="AutoID" GroupBoxCaptionOffsetY="-18px"
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" ShowHeader="False">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                            <table>
                                <tr>
                                    <td>
                                        Click en la celda para obtener el detalle del resultado.
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td>
                                        Opciones de Fila:
                                    </td>
                                    <td>
                                        <dx:ASPxCheckBox ID="ShowRowSubTotals" runat="server" CssFilePath="~/App_Themes/Office2003 Olive/{0}/styles.css"
                                            CssPostfix="Office2003_Olive" Font-Size="X-Small" Text="Mostrar la fila de Sub Totales"
                                            AutoPostBack="True" Checked="True">
                                        </dx:ASPxCheckBox>
                                    </td>
                                    <td>
                                        <dx:ASPxCheckBox ID="ShowColumnSubTotals" runat="server" CssFilePath="~/App_Themes/Office2003 Olive/{0}/styles.css"
                                            CssPostfix="Office2003_Olive" Font-Size="X-Small" Text="Mostrar la columna de Sub Totales"
                                            AutoPostBack="True" Checked="True">
                                        </dx:ASPxCheckBox>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                    <ContentPaddings PaddingBottom="8px" />
                </dx:ASPxRoundPanel>
                <br />
                <div style="overflow: scroll; width: 950px; border: 0 0 0 0; margin: 0 0 0 0;">
                    <dx:ASPxPivotGrid ID="ASPxPivotGrid1" runat="server" ClientInstanceName="PivotGrid"
                        EnableCallBacks="False" Font-Size="X-Small" ClientIDMode="AutoID">
                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                            <MenuStyle GutterWidth="0px" />
                            <CustomizationFieldsCloseButtonStyle>
                                <Paddings Padding="0px" />
                            </CustomizationFieldsCloseButtonStyle>
                        </Styles>
                        <OptionsLoadingPanel>
                            <Image Url="~/App_Themes/PlasticBlue/PivotGrid/Loading.gif">
                            </Image>
                        </OptionsLoadingPanel>
                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <CustomizationFieldsBackground Url="~/App_Themes/PlasticBlue/PivotGrid/pgCustomizationFormBackground.gif">
                            </CustomizationFieldsBackground>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/PivotGrid/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <OptionsPager ShowDefaultImages="False">
                            <NextPageButton Text="Next &gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Prev">
                            </PrevPageButton>
                        </OptionsPager>
                        <Fields>
                            <dx:PivotGridField ID="field" AreaIndex="0" Caption="Especialidad">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field1" AreaIndex="1" Caption="Médico">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field2" AreaIndex="2" Caption="Departamento">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field3" AreaIndex="3" Caption="Programación Médica">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field4" AreaIndex="4" Caption="Turno">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field5" AreaIndex="5" Caption="Tipo Servicio">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field6" AreaIndex="6" Caption="Tipo Programación">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field7" AreaIndex="7" Caption="Estado">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field8" AreaIndex="8" Caption="Atención">
                            </dx:PivotGridField>
                            <dx:PivotGridField ID="field9" AreaIndex="9" Caption="Servicio">
                            </dx:PivotGridField>
                        </Fields>
                        <ClientSideEvents CellClick="function(s, e) { 
	GridView.PerformCallback(&quot;D|&quot; + e.ColumnIndex + &quot;|&quot; + e.RowIndex); 
	ShowDrillDown();
	var columnIndex = document.getElementById('ColumnIndex'),
		rowIndex = document.getElementById('RowIndex');
	if(!_aspxIsExists(columnIndex)) {
		columnIndex = document.createElement(&quot;input&quot;);
		rowIndex = document.createElement(&quot;input&quot;);
		
		columnIndex.type = &quot;hidden&quot;;
		columnIndex.id = &quot;ColumnIndex&quot;;
		columnIndex.name = &quot;ColumnIndex&quot;;		
		rowIndex.type = &quot;hidden&quot;;
		rowIndex.id = &quot;RowIndex&quot;;
		rowIndex.name = &quot;RowIndex&quot;;		
		
		GridView.GetRootTable().appendChild(columnIndex);
		GridView.GetRootTable().appendChild(rowIndex);
	}	
	columnIndex.value = e.ColumnIndex;
	rowIndex.value = e.RowIndex;
}" />
                    </dx:ASPxPivotGrid>
                </div>
                <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" Height="1px" AllowDragging="True"
                    ClientInstanceName="DrillDownWindow" Left="200" Top="200" CloseAction="CloseButton"
                    Width="153px" HeaderText="Ventana de Detalle" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" ClientIDMode="AutoID" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
                            <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" ClientInstanceName="GridView"
                                CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
                                Font-Size="XX-Small">
                                <ClientSideEvents EndCallback="function(s, e) {
	DrillDownWindow.SetClientWindowSize(-1, 100, 100);
}" />
                                <SettingsPager ShowDefaultImages="False">
                                    <AllButton Text="All">
                                    </AllButton>
                                    <NextPageButton Text="Next &gt;">
                                    </NextPageButton>
                                    <PrevPageButton Text="&lt; Prev">
                                    </PrevPageButton>
                                </SettingsPager>
                                <SettingsLoadingPanel Mode="ShowOnStatusBar" />
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                    <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                    </Header>
                                </Styles>
                                <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <StylesEditors>
                                    <CalendarHeader Spacing="11px">
                                    </CalendarHeader>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Exportar a Excel" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" Font-Size="XX-Small" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            </dx:ASPxButton>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingRight="4px" PaddingBottom="4px" PaddingLeft="10px" PaddingTop="4px" />
                    </HeaderStyle>
                </dx:ASPxPopupControl>
                <br />
                <table>
                    <tr>
                        <td>
                            <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                CssPostfix="PlasticBlue" Font-Size="XX-Small" ClientIDMode="AutoID" GroupBoxCaptionOffsetY="-18px"
                                SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" ShowHeader="False">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent2" runat="server">
                                        <table border="0" cellpadding="3" cellspacing="0">
                                            <tr>
                                                <td>
                                                    Exportar a:
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="listExportFormat" runat="server" Style="vertical-align: middle"
                                                        SelectedIndex="0" ValueType="System.String" Width="61px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                        CssPostfix="PlasticBlue" Font-Size="XX-Small" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                        <Items>
                                                            <dx:ListEditItem Text="Pdf" Value="0" />
                                                            <dx:ListEditItem Text="Excel" Value="1" />
                                                            <dx:ListEditItem Text="Mht" Value="2" />
                                                            <dx:ListEditItem Text="Rtf" Value="3" />
                                                            <dx:ListEditItem Text="Text" Value="4" />
                                                            <dx:ListEditItem Text="Html" Value="5" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <ValidationSettings>
                                                            <ErrorFrameStyle ImageSpacing="4px">
                                                                <ErrorTextPaddings PaddingLeft="4px" />
                                                            </ErrorFrameStyle>
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="buttonSaveAs" runat="server" ToolTip="Exportar y guardar" Style="vertical-align: middle;"
                                                        Text="Guardar" Width="51px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                        CssPostfix="PlasticBlue" Font-Size="XX-Small" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="buttonOpen" runat="server" ToolTip="Exportar y abrir" Style="vertical-align: middle"
                                                        Text="Abrir" Width="51px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                                                        CssPostfix="PlasticBlue" Font-Size="XX-Small" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        <table border="0" cellpadding="3" cellspacing="0">
                                            <tr>
                                                <td rowspan="5" valign="top" style="width: 106px">
                                                    Opciones de Exportación:
                                                </td>
                                                <td style="width: 250px">
                                                    <asp:CheckBox ID="checkPrintHeadersOnEveryPage" runat="server" Text="Imprimir cabeceras en cada p&#225;gina" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 250px">
                                                    <asp:CheckBox ID="checkPrintFilterHeaders" runat="server" Text="Imprimir cabeceras de filtro"
                                                        Checked="True" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 250px">
                                                    <asp:CheckBox ID="checkPrintColumnHeaders" runat="server" Text="Imprimir cabeceras de columna"
                                                        Checked="True" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 250px;">
                                                    <asp:CheckBox ID="checkPrintRowHeaders" runat="server" Text="Imprimir cabeceras de fila"
                                                        Checked="True" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 250px">
                                                    <asp:CheckBox ID="checkPrintDataHeaders" runat="server" Text="Imprimir cabeceras de datos"
                                                        Checked="True" />
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                                <ContentPaddings PaddingBottom="8px" />
                            </dx:ASPxRoundPanel>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
                <br />
            </th>
        </tr>
        <tr>
            <td>
                <dx:ASPxPivotGridExporter ID="ASPxPivotGridExporter1" runat="server" ASPxPivotGridID="ASPxPivotGrid1">
                </dx:ASPxPivotGridExporter>
            </td>
        </tr>
        <tr>
            <td>
                <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server" GridViewID="ASPxGridView1">
                </dx:ASPxGridViewExporter>
            </td>
        </tr>
        <%--<tr>
            <td>
                
            </td>
        </tr>--%>
    </table>
</asp:Content>

